package com.iterator.bean.wechat.lc;

import com.iterator.bean.web.pojo.dhy.Keyword;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.LinkedList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchIndexVO {

    private Keyword defaultKeyword;
    private List<Keyword> hotKeywordList;
    private List<HistoryKeyword> historyKeywordList = new LinkedList<>();

    public void addHistoryKeyword(String keyword){

        historyKeywordList.add(new HistoryKeyword(keyword));
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    private static class HistoryKeyword{String keyword;}
}

